package com.example.algorithm.no0162;

import com.example.algorithm.no0162.solution.BinSearchSolutionImpl;
import com.example.algorithm.no0162.solution.SolutionImpl;

import java.util.Arrays;

/**
 * @Description 解答测试-寻找峰值
 * @ClassName SolutionTest
 * @Author Administrator
 * @Date 2020/5/16 12:54
 * @Version 1.0.0
 */
public class SolutionTest {

    static int[] nums = {1,2,3,1};

    public static void main(String[] args) {
        System.out.println("输入数组为: " + Arrays.toString(nums));

//        Solution solution = new SolutionImpl();
        Solution solution = new BinSearchSolutionImpl();

        System.out.println(solution.findPeakElement(nums));
    }
}
